<?php
/**
 * 广告位编辑模板
 */

use common\widgets\ActiveForm;
use common\widgets\FormTable;

$form = ActiveForm::begin();
echo FormTable::widget([
    'form' => $form,
    'model' => $model,
    'rows' => [
        'name' => [
            'type' => FormTable::INPUT_TEXT,
            'width' => 6,
        ],
        'title' => [
            'type' => FormTable::INPUT_TEXT,
            'width' => 6,
        ],
        'remark' => [
            'type' => FormTable::INPUT_TEXTAREA,
            'width' => 6,
        ],
        'status' => [
            'type' => FormTable::INPUT_RADIO_LIST,
            'items' => [
                0 => '不可用',
                1 => '可用'
            ],
        ],
    ]
]);

ActiveForm::end();